package com.ocom.common.entity.master;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ocom.common.entity.base.EntityBase;
import com.ocom.common.entity.typehandler.MngUserHandle;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "mng_user_info",autoResultMap = true)
public class EntityMngUserInfo extends EntityBase implements Serializable {

    private static final Long serialVersionUID = 1570798416486016171L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String userName;
    private String password;
    private String salt;
    private Long role;
    private Long comId;
    private Long deptId;
    private Long bnsId;
    private Long regionId;
    private Long areaId;
    private Integer status;
    @TableField(typeHandler = MngUserHandle.class)
    private String phone;
}
